﻿//Copyright (c) 2010, Andreas Grünwald
//All rights reserved.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;

namespace yaTDL.Core.Toodledo
{
    public class ToodledoAPIKey
    {
        public string Key { get; set; }

        public DateTime Expires { get; set; }

        
        public bool IsExpired
        {
            get
            {
                return Expires > DateTime.Now ? false : true;
            }
        }

        [DebuggerStepThrough()]
        public override string ToString()
        {
            return "Key: " + Key + "; Expires: " + Expires.ToString();
        }
    }
}
